home *** CD-ROM | disk | FTP | other *** search
- // Pixel Shader 1.1 generated by NVIDIA Cg compiler
- // cgc version 1.3.0001, build date Jan 7 2005 14:01:35
- // command line args: -q -profile ps_1_1 -entry main
- // source file: ps1_1_normal_phong.cg
- //vendor NVIDIA Corporation
- //version 1.0.02
- //profile ps_1_1
- //program main
- //semantic main.baseMap : TEXUNIT0
- //semantic main.AmbientEmissive
- //semantic main.Diffuse
- //semantic main.Specular
- //var sampler2D baseMap : TEXUNIT0 : texunit 0 : 1 : 1
- //var float4 AmbientEmissive : : c[3] : 2 : 1
- //var float4 Diffuse : : c[1] : 3 : 1
- //var float4 Specular : : c[2] : 4 : 1
- //var float4 I.Color : $vin.COLOR0 : COLOR0 : 0 : 1
- //var float4 I.LightAtten : $vin.COLOR1 : COLOR1 : 0 : 1
- //var float4 I.TexCoord0 : $vin.TEXCOORD0 : TEXCOORD0 : 0 : 1
- //var float4 main : $vout.COLOR : COLOR : -1 : 1
- ps.1.1
- def c0, 0.000000, 1.000000, 0.000000, 1.000000
- tex t0
- dp3 t1.rgb, c0, v0
- + mul t1.a, c0.a, v0.b
- mul t1.rgb, c1, t1
- mul t2.rgb, c2, t1.a
- mad t1.rgb, t1, v1_bx2.a, c3
- mul r0.rgb, t2, v1_bx2.a
- mad r0.rgb, t1, t0, r0
- + mov r0.a, t0.a
- // 7 instructions
-